package com.zoe.app.entity;

import org.springframework.stereotype.Component;

/**
 * @author Zoe.Zhang
 * @date 2021/09/23
 * @description
 */
@Component
public class Car {
    private String name;
    private String color;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("car===>" + name);
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return "Car{" +
            "name='" + name + '\'' +
            ", color='" + color + '\'' +
            '}';
    }
}
